import javax.swing.JFrame;



public abstract class Game extends javax.swing.JFrame 
{
	java.util.HashMap<String,String> wordMap = new java.util.HashMap<String,String>();
	int    score = 0;
	
	public Game(String category, String level)
	{
		this.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
		this.setLocationByPlatform(true);
		
		this.wordMap = DB.getWords(category, level);

		init();
		this.setVisible(true);
	}
	
	/**
	 * USE THIS AS YOU WOULD USE A CONSTRUCTOR
	 */
	abstract void init();

    protected void setScore(int score){ this.score = score; }
	public int getScore() { return score; }
}
